<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('出院结算')"/>
    <th:block th:include="include :: datetimepicker-css"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-hospitalized-add">
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">出院结算金额：</label>
            <div class="col-sm-8">
                <div class="input-group m-b"><span class="input-group-addon">¥</span>
                    <input id="id" name="id" type="hidden" th:value="${id}"/>
                    <input type="text" th:value="${settlementAmount}" name="settlementAmount" id="settlementAmount"
                           required class="form-control"> <span class="input-group-addon">.00</span>
                </div>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: datetimepicker-js"/>
<script th:inline="javascript">
    var prefix = ctx + "hospital/discharge"
    $("#form-hospitalized-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/settlement", $('#form-hospitalized-add').serialize());
        }
    }
</script>
</body>
</html>